package com.xiangyun.versionhelper;

import java.util.Date;

/**
 * Created by wangxiangyun on 2019/1/23.
 */
public class VersionContext {
    protected static final ThreadLocal<Date> LOCAL_DATE = new ThreadLocal<Date>();

    public static Date getLocalDate() {
        return LOCAL_DATE.get();
    }

    public static void setLocalDate( Date date) {
        LOCAL_DATE.set(date);
    }

    public static void clear() {
        LOCAL_DATE.remove();
    }
}
